<?php
// +----------------------------------------------------------------------
// | OneKeyAdmin [ Believe that you can do better ]
// +----------------------------------------------------------------------
// | Copyright (c) 2020-2023 http://onekeyadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: MUKE <513038996@qq.com>
// +----------------------------------------------------------------------
namespace plugins\userinvite\api\model;

use think\Model;
use app\api\model\User;

class UserInvite extends Model
{
	// 关联模型
    public function to()
    {
        return $this->hasOne(User::class, 'id', 'to');
    }

    // 获取器
    public function getCreateTimeAttr($value, $array)
    {
        return friend_time($value);
    }
}